<template>
    <h3>我是子组件</h3>
    <ul>
        <li v-for="i in props.list" :key="i">{{ i }}</li>
    </ul>
</template>
<script setup>
import { defineProps } from 'vue'
const props = defineProps({
  list: {
    type: Array,
    default: () => [],
  },
})
</script>